package com.example.module.message.api

import com.gsafety.libraryktx.base.RespBaseBean
import com.gsafety.libraryktx.bean.WarnData
import retrofit2.Call
import retrofit2.http.*
import java.util.*

/**
 * @author : lj
 * @date : 2020/9/18 11:20
 */
interface ApiService {
    @GET("rsubEwldMnWarnevents/currWarningListByPage2")
    fun messageList(@QueryMap params: TreeMap<String, Any>): Call<RespBaseBean<WarnData>>

    @POST("bacoMnMyattation/insertMyAttation")
    fun setAttention(@Body params: TreeMap<String, Any>): Call<RespBaseBean<Boolean>>

    @POST("bacoMnMyattation/cancelMyAttation")
    fun cancelAttention(@Body params: TreeMap<String, Any>): Call<RespBaseBean<Boolean>>
}